package com.ruoyi.djb.service.impl;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.djb.domain.DjbDistrictBluetooth;
import com.ruoyi.djb.mapper.DjbDistrictBluetoothMapper;
import com.ruoyi.djb.service.IDjbDistrictBluetoothService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 蓝牙设备管理Service业务层处理
 * 
 * @author xxd
 * @date 2024-06-13
 */
@Service
public class DjbDistrictBluetoothServiceImpl implements IDjbDistrictBluetoothService 
{
    @Autowired
    private DjbDistrictBluetoothMapper djbDistrictBluetoothMapper;

    /**
     * 查询蓝牙设备管理
     * 
     * @param id 蓝牙设备管理主键
     * @return 蓝牙设备管理
     */
    @Override
    public DjbDistrictBluetooth selectDjbDistrictBluetoothById(Integer id)
    {
        return djbDistrictBluetoothMapper.selectDjbDistrictBluetoothById(id);
    }

    /**
     * 查询蓝牙设备管理列表
     * 
     * @param djbDistrictBluetooth 蓝牙设备管理
     * @return 蓝牙设备管理
     */
    @Override
    public List<DjbDistrictBluetooth> selectDjbDistrictBluetoothList(DjbDistrictBluetooth djbDistrictBluetooth)
    {
        return djbDistrictBluetoothMapper.selectDjbDistrictBluetoothList(djbDistrictBluetooth);
    }

    /**
     * 新增蓝牙设备管理
     * 
     * @param djbDistrictBluetooth 蓝牙设备管理
     * @return 结果
     */
    @Override
    public int insertDjbDistrictBluetooth(DjbDistrictBluetooth djbDistrictBluetooth)
    {
        return djbDistrictBluetoothMapper.insertDjbDistrictBluetooth(djbDistrictBluetooth);
    }

    /**
     * 修改蓝牙设备管理
     * 
     * @param djbDistrictBluetooth 蓝牙设备管理
     * @return 结果
     */
    @Override
    public int updateDjbDistrictBluetooth(DjbDistrictBluetooth djbDistrictBluetooth)
    {
        return djbDistrictBluetoothMapper.updateDjbDistrictBluetooth(djbDistrictBluetooth);
    }

    /**
     * 批量删除蓝牙设备管理
     * 
     * @param ids 需要删除的蓝牙设备管理主键
     * @return 结果
     */
    @Override
    public int deleteDjbDistrictBluetoothByIds(String ids)
    {
        return djbDistrictBluetoothMapper.deleteDjbDistrictBluetoothByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除蓝牙设备管理信息
     * 
     * @param id 蓝牙设备管理主键
     * @return 结果
     */
    @Override
    public int deleteDjbDistrictBluetoothById(Integer id)
    {
        return djbDistrictBluetoothMapper.deleteDjbDistrictBluetoothById(id);
    }
}
